//
//  CourseCell.m
//  KeepProject
//
//  Created by amos on 16/1/20.
//  Copyright © 2016年 itheima. All rights reserved.
//

#import "CourseCell.h"

@interface CourseCell ()
@property (weak, nonatomic) IBOutlet UIImageView* iconView;
@property (weak, nonatomic) IBOutlet UILabel* nameLabel;

@end

@implementation CourseCell

- (void)setCourse:(Course*)course
{
    _course = course;

    self.iconView.image = course.icon ? [UIImage imageNamed:course.icon] : nil;

    self.nameLabel.text = course.name;
}

@end
